count=0
search="*_gt.json*"
read_dir(){
    for file in `ls -a $1`
    do
        if [ -d $1"/"$file ]
        then
            if [[ $file != '.' && $file != '..' ]]
            then
                read_dir $1"/"$file
            fi
        else
            if [[ $file == $search ]]
            then
                echo $file
                count=$(($count+1))
            else
                echo "not eq $file , $2"
            fi
        fi
    done
}
read_dir $1
echo "目录$1 中*_gt.json* 出现的次数为$count"